import java.util.*;
public class p2054 
{
	public static void main(String[] args) 
	{
		Scanner in = new Scanner(System.in);
		while(in.hasNext())
		{
			String a = in.next();
			String b = in.next();
			if(a.equals(b))System.out.println("YES");
			else System.out.println("NO");
		}		
	}
}
